/*
 * TimerControl.h
 *
 *  Created on: 27.09.2011
 *      Author: windows97
 */

#ifndef HEARTBEAT_H_
#define HEARTBEAT_H_

#define HEARTBEAT_PRESCALER ((uint8_t)  (8U))
#define HEARTBEAT_1_U16     ((uint16_t) ((F_CPU/HEARTBEAT_PRESCALER)*0.02 /*s*/)) /* -> 20ms: XTAL/HEARTBEAT_PRESCALER * 0,020s */

void TicInit( void );

typedef void (*T_HeartbeatNotify) (void);
uint8_t TicRegisterNotification( T_HeartbeatNotify iNotifyFunction );

void TicSyncCounter( void );
#endif /* HEARTBEAT_H_ */
